Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming (Jason Arnold's Library) by Maurice Sharp & Erica Sadun & Rod Strougo

Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming (Jason Arnold's Library) by Maurice Sharp & Erica Sadun & Rod Strougo

Author:Maurice Sharp & Erica Sadun & Rod Strougo
Language: eng
Format: epub
Publisher: Addison-Wesley Professional
Published: 2014-07-04T16:00:00+00:00


* * *

Populating the Toolbar

Now that you have the icons, it is time to add a toolbar to the add/view car screen. An important thing to remember is where you add the toolbar. You can always drag a UIToolbar into any view controller. But for toolbars that could be project wide, you set them up in the navigation controller. Here’s how you do this:

1. Open the iPhone storyboard and select the Navigation Controller.

2. In the Attributes inspector, change Bottom Bar from Inferred to Opaque Toolbar. A toolbar appears at the bottom of the controller as well as of every scene on the storyboard.

3. Select the add/view car scene and drag three UIBarButtonItems into the toolbar. Then drag in a flexible space item between each pair of buttons. Figure 7-7 shows adding the second flexible space.

Figure 7-7 Adding a flexible space



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.